﻿using DoNet.Common.Helpers;
using DoNet.Wechat.MP;
using Microsoft.AspNetCore.Mvc;

namespace WechatMp.Web.Controllers.API.MP
{
    /// <summary>
    /// 
    /// </summary>
    public class ApiMPController : ApiController //ControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        public readonly ILogger logger;
        /// <summary>
        /// 
        /// </summary>
        public readonly IServiceProvider serviceProvider;
        /// <summary>
        /// 
        /// </summary>
        public readonly AccessTokenMP accessTokenMP;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="_logger"></param>
        /// <param name="_serviceProvider"></param>
        public ApiMPController(ILogger _logger, IServiceProvider _serviceProvider)
        {
            logger = _logger;
            serviceProvider = _serviceProvider;
            accessTokenMP = new AccessTokenMP(logger, serviceProvider);
        }
    }
}
